#ifndef MFC_H
#define MFC_H

#include <linux/videodev2.h>

#include "io_dev.h"

#define MFC_ENC_IN_NBUF 16
#define FIMC_ENC_IN_NBUF 16
#define MFC_ENC_OUT_NBUF 4
#define MFC_MAX_PLANES 2

struct io_dev *fimc_create(char const *name);
int fimc_set_codec(struct io_dev *dev, enum io_dir dir, int codec);
int fimc_set_fmt(struct io_dev *dev, enum io_dir dir, int width, int height);
int fimc_set_rate(struct io_dev *dev, int rate);
int fimc_set_bitrate(struct io_dev *dev, int bitrate);


#endif